entry = find_direct(¤t->mm->context.direct_list, addr);
if(entry != ¤t->mm->context.direct_list){
list_add_tail(&dmmap->list, entry);
- printk(KERN_ALERT "bd240 debug: added node %lx in the middle\n", node->vm_start);
+ printk(KERN_ALERT "bd240 debug: added node %lx in the middle\n", dmmap->vm_start);
} else {
list_add(&dmmap->list, ¤t->mm->context.direct_list);
- printk(KERN_ALERT "bd240 debug: added node %lx at tail\n", node->vm_start);
+ printk(KERN_ALERT "bd240 debug: added node %lx at tail\n", dmmap->vm_start);
}
/* and perform the mapping */